﻿namespace Utilities.AppSettingModels
{
    public class Config
    {
        public int MaxFileSize { get; set; }
        public Qiniu Qiniu { get; set; }
        public JPush JPush { get; set; }
        public SystemSwitch SystemSwitch { get; set; }
    }

    #region 七牛配置
    /// <summary>
    /// 七牛配置
    /// </summary>
    public class Qiniu
    {
        /// <summary>
        /// 账户下的AccessKey
        /// </summary>

        public string AK { get; set; }

        /// <summary>
        /// 账户下的SecretKey
        /// </summary>
        public string SK { get; set; }

        /// <summary>
        /// 对象存储里的空间名称
        /// </summary>
        public string Bucket { get; set; }

        /// <summary>
        /// 当前空间下配置的域名
        /// </summary>
        public string Domain { get; set; }

        /// <summary>
        /// 当前空间所在的存储区域
        /// </summary>
        public string BucketArea { get; set; }
    }
    #endregion

    #region 极光推送配置
    /// <summary>
    /// 极光推送配置
    /// </summary>
    public class JPush
    {
        /// <summary>
        /// 是否启用极光推送
        /// </summary>
        public bool IsOpen { get; set; }

        /// <summary>
        /// 极光推送KEY
        /// </summary>
        public string AK { get; set; }

        /// <summary>
        /// 极光推送MASTERSECRET
        /// </summary>
        public string SK { get; set; }
    }
    #endregion

    #region 系统开关
    /// <summary>
    /// 系统开关
    /// </summary>
    public class SystemSwitch
    {
        /// <summary>
        /// 是否显示异常详细信息
        /// </summary>
        public bool IsShowException { get; set; }

        /// <summary>
        /// 是否记录请求日志
        /// </summary>
        public bool IsRequestLog { get; set; }

        /// <summary>
        /// 是否记录SQL日志
        /// </summary>
        public bool IsSqlLog { get; set; }

        /// <summary>
        /// 是否显示Swagger帮助文档
        /// </summary>
        public bool IsShowSwagger { get; set; }
    }
    #endregion
}
